﻿@{
    ViewBag.Title = "PSI登录";
}
<link href="~/Content/web/css/login.css?v=4.1.0" rel="stylesheet" />
<style type="text/css">
    .btn-default {
        color: #333;
        background-color: #fff;
        border-color: #ccc;
    }
</style>
<div style="text-align: center;">
    <h1 style="font-size: 30px;">登录</h1>
    @*<h3>欢迎使用:企业政策申报自评价</h3>*@
</div>

<form id="loginForm" class="layui-form layui-form-pane" action="" style="text-align:center;">
    <div class="layui-form-item layui-inline">
        <label class="layui-form-label">用户名</label>
        <div class="layui-input-inline">
            <input type="text" name="account" placeholder="请输入用户名" autocomplete="off" class="layui-input" style="margin-top: 1px;">
        </div>
        @*<div class="layui-form-mid layui-word-aux">请务必填写用户名</div>*@
    </div>
    <br />
    <div class="layui-form-item layui-inline">
        <label class="layui-form-label">密码</label>
        <div class="layui-input-inline">
            <input type="password" name="password" placeholder="请输入密码" autocomplete="off" class="layui-input" style="margin-top: 1px;">
        </div>
        @*<div class="layui-form-mid layui-word-aux">请务必填写密码</div>*@
    </div>
    <div class="form-group" style="@(ZP.Common.ZPCommon.isVerification == "1" ? "display:''":"display:none") ">
        <input type="hidden" id="isCode" value="@(ZP.Common.ZPCommon.isVerification)" />
        <div id="psi-captcha"></div>
        <input type="hidden" name="Token" />
    </div>
    <br />
    <button id="btnSubmit" type="button" class="layui-btn">登 录</button>

    <div class="layui-upload" style="height:30px;display:none;">
        <input type="hidden" id="img2xls" value="@(ViewBag.img2xls)" />
        <br />
        <button type="button" class="layui-btn layui-btn-primary" id="btnYYZZ">图片表格转Excel</button>
        <div class="layui-upload-list">
            <img class="layui-upload-img" id="demo1">
            <p id="demoText"></p>
        </div>
    </div>

    @*<p class="text-muted text-center">
        <a href="/PSIUser/findPassword"><small>忘记密码了？</small></a> <!-- | <a href="register">注册一个新账号</a> -->
    </p>*@
</form>

<script src="~/Content/web/js/Login/index.js?v=@(ZP.Common.ZPCommon.ZP_Version)"></script>
<script src="//cdn.dingxiang-inc.com/ctu-group/captcha-ui/index.js"></script>

<script type="text/javascript">
    var captcha = _dx.Captcha(document.getElementById('psi-captcha'), {
        appId: "@(ZP.Common.ZPCommon.ZP_DX_APPID)",
        style: 'inline',
        //width: 300,
        success: function (token) {
            $('input[name="Token"]').val(token);
        }
        , fail: function (errorMsg) {
            //console.log(errorMsg);
        }
    });
</script>